//商品分类相关的ts类型
interface ResponseData {
  code: number
  message: string
  ok: boolean
}

export interface CategoryObj {
  id: number | string
  name: string
  category1Id: number
  category2Id: number
}

export interface CategoryResponseData extends ResponseData {
  data: CategoryObj[]
}

export interface AttrValueObj {
  id?: number
  valueName: string
  attrId?: number
  flag?: boolean
}

type AttrValueList = AttrValueObj[]

export interface AttrObj {
  id?: string | number
  attrName: string
  categoryId: string | number
  categoryLevel: number
  attrValueList: AttrValueList
}
export type AttrList = AttrObj[]

export interface AttrInfoResponseData extends ResponseData {
  data: AttrList
}
